package cn.ierror.common.enums;

/**
 * 项目名称: tourism
 * 类名称: cn.pubinfo.tourism.common.enums
 * 类描述: 信用卡类型
 * 创建人: fzc
 * 创建时间: 2017年05月03日 上午11:39
 **/
public enum SupportCredEnum {

    JTB("01","JTB"),MGYT("02","美国运通"),VISA("03","VISA"),MASTER("04","MASTER"),UNIONPAY("05","银联");

    private String type;

    private String String;

    SupportCredEnum(String type, String string) {
        this.type = type;
        this.String = string;
    }

    public String getType() {
        return type;
    }

    public java.lang.String getString() {
        return String;
    }

    public static SupportCredEnum typeOf(String type) {
        for (SupportCredEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
